<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="../src/ScopeRouter.js"></script>
        <script type="text/javascript">
            var sRouter = new ScopeRouter();
            
            function A() {
                this.name = "A - name";
            }
            
            function B() {
                this.name = "B - name";
            }
            
            var intervalID = sRouter.setScopedInterval(function() {
                console.log('A === this', " STATUS "+(this !== A.toString()));
                clearInterval(intervalID);
            }, 100, A);
            
            
            sRouter.setScopedTimeout(function() {
                console.log('B === this', " STATUS "+(this !== B.toString()));
            }, 100, B);
        </script>
    </head>
    <body>
    </body>
</html>
